package com.example.administrator.familfinalcialmanagement.ui.activity;

import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.example.administrator.familfinalcialmanagement.MainActivity;
import com.example.administrator.familfinalcialmanagement.R;
import com.example.administrator.familfinalcialmanagement.databinding.ActivityLoginOutBinding;
import com.example.administrator.familfinalcialmanagement.ui.BaseActivity;
import com.example.administrator.familfinalcialmanagement.util.SpUtils;

/**
 * Created by 86178 on 2019/11/24.
 * author mogen
 * 用心，成就一切。
 * <p>
 * 退出Activity
 */

public class LoginOutActivity extends BaseActivity {

    ActivityLoginOutBinding binding;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate( savedInstanceState );
        binding = DataBindingUtil.setContentView( this, R.layout.activity_login_out );
        binding.setActivity( this );
        initView();
    }

    private void initView() {
        setBack();
        setTitleText( "设置" );
        binding.llModuleSet.setOnClickListener( this );
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.llModuleSet:
                SpUtils.put( "isLogin","" );
                startActivity( new Intent( LoginOutActivity.this, MainActivity.class ) );
                finish();
                break;
            default:
        }
    }
}


